package com.ruoyi.point.service.impl;

import com.ruoyi.point.mapper.ConfigurationInformationMapper;
import com.ruoyi.point.pojo.ConfigurationInformation;
import com.ruoyi.point.service.IConfigurationInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 组态管理Service业务层处理
 *
 * @author ruoyi
 * @date 2024-04-22
 */
@Service
public class ConfigurationInformationServiceImpl implements IConfigurationInformationService
{
    @Autowired
    private ConfigurationInformationMapper configurationInformationMapper;

    /**
     * 查询组态管理
     *
     * @param configurationId 组态管理主键
     * @return 组态管理
     */
    @Override
    public ConfigurationInformation selectConfigurationInformationByConfigurationId(Long configurationId)
    {
        return configurationInformationMapper.selectConfigurationInformationByConfigurationId(configurationId);
    }

    /**
     * 查询组态管理列表
     *
     * @param configurationInformation 组态管理
     * @return 组态管理
     */
    @Override
    public List<ConfigurationInformation> selectConfigurationInformationList(ConfigurationInformation configurationInformation)
    {
        return configurationInformationMapper.selectConfigurationInformationList(configurationInformation);
    }

    /**
     * 新增组态管理
     *
     * @param configurationInformation 组态管理
     * @return 结果
     */
    @Override
    public int insertConfigurationInformation(ConfigurationInformation configurationInformation)
    {
        return configurationInformationMapper.insertConfigurationInformation(configurationInformation);
    }

    /**
     * 修改组态管理
     *
     * @param configurationInformation 组态管理
     * @return 结果
     */
    @Override
    public int updateConfigurationInformation(ConfigurationInformation configurationInformation)
    {
        return configurationInformationMapper.updateConfigurationInformation(configurationInformation);
    }

    /**
     * 批量删除组态管理
     *
     * @param configurationIds 需要删除的组态管理主键
     * @return 结果
     */
    @Override
    public int deleteConfigurationInformationByConfigurationIds(Long[] configurationIds)
    {
        return configurationInformationMapper.deleteConfigurationInformationByConfigurationIds(configurationIds);
    }

    /**
     * 删除组态管理信息
     *
     * @param configurationId 组态管理主键
     * @return 结果
     */
    @Override
    public int deleteConfigurationInformationByConfigurationId(Long configurationId)
    {
        return configurationInformationMapper.deleteConfigurationInformationByConfigurationId(configurationId);
    }
}
